﻿using System;
using System.Collections.Generic;
using System.Text;

using MT.eVotePRS.Model;

namespace MT.eVotePRS.Presentation.Core
{
    public class FormLocalSingleton
    {
        private static readonly object _synRoot = new Object();


        public static FormLocalSingleton GetInstance()
        {
            FormLocalSingleton singleton = new FormLocalSingleton();

            if (singleton == null)
            {
                lock (_synRoot)
                {
                    if (singleton == null)
                    {
                        singleton = new FormLocalSingleton();
                    }
                }

            }
            return singleton;
        }

        private FormLocalSingleton()
        {

        }

        /// <summary>
        /// Get current action
        /// </summary>
        public IFormAction CurrentAction
        {
            get;
            set;
        }
    }
}
